package com.android;

import android.app.Activity;
import android.view.View;

public class BaseActivity extends Activity {

    @Override
    public void setContentView(int layoutResID) {
        if (layoutResID != com.android.tv.settings.R.layout.activity_settingmain) {
            super.setContentView(com.android.tv.settings.R.layout.activity_settingmain);
            android.widget.FrameLayout settingmain_browse = (android.widget.FrameLayout) findViewById(com.android.tv.settings.R.id.settingmain_browse);
            android.view.View.inflate(this, layoutResID, settingmain_browse);
        } else {
            super.setContentView(layoutResID);
        }
    }

    @Override
    public void setContentView(View view) {
        setContentView(com.android.tv.settings.R.layout.activity_settingmain);
        android.widget.FrameLayout settingmain_browse = (android.widget.FrameLayout) findViewById(com.android.tv.settings.R.id.settingmain_browse);
        settingmain_browse.addView(view);
    }

    public void backClick(View mview) {
        onBackPressed();
    }

}
